package com.aries.remoteplusserver.core;

import java.awt.AWTException;
import java.awt.Robot;

public class NavigationHandler {

	private Robot robot;
	
	public NavigationHandler() throws AWTException
	{
		this.robot = new Robot();
		this.robot.setAutoDelay(5);
	}
	
	public void navigationHandler(Object[] args)
	{
		int keyCode = Integer.parseInt(args[0].toString());
		
		this.robot.keyPress(keyCode);
		this.robot.keyRelease(keyCode);
	}
}
